package com.ruoyi.quartz.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 股票日行情对象 stock_daily
 *
 * @author ruoyi
 * @date 2023-11-28
 */
public class StockDaily extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** ts股票代码 */
    @Excel(name = "ts股票代码")
    private String tsCode;

    /** 交易日期 */
    @Excel(name = "交易日期")
    private String tradeDate;

    /** 开盘价 */
    @Excel(name = "开盘价")
    private BigDecimal opened;

    /** 最高价 */
    @Excel(name = "最高价")
    private BigDecimal high;

    /** 最低价 */
    @Excel(name = "最低价")
    private BigDecimal low;

    /** 收盘价 */
    @Excel(name = "收盘价")
    private BigDecimal closed;

    /** 昨收价 */
    @Excel(name = "昨收价")
    private BigDecimal preClosed;

    /** 涨跌额 */
    @Excel(name = "涨跌额")
    private BigDecimal changed;

    /** 涨跌幅 */
    @Excel(name = "涨跌幅")
    private BigDecimal pctChg;

    /** 成交量/手 */
    @Excel(name = "成交量/手")
    private BigDecimal vol;

    /** 成交额/千元 */
    @Excel(name = "成交额/千元")
    private BigDecimal amount;

    /** 换手率 */
    @Excel(name = "换手率")
    private BigDecimal turnoverRate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setTsCode(String tsCode)
    {
        this.tsCode = tsCode;
    }

    public String getTsCode()
    {
        return tsCode;
    }
    public void setTradeDate(String tradeDate)
    {
        this.tradeDate = tradeDate;
    }

    public String getTradeDate()
    {
        return tradeDate;
    }
    public void setOpened(BigDecimal opened)
    {
        this.opened = opened;
    }

    public BigDecimal getOpened()
    {
        return opened;
    }
    public void setHigh(BigDecimal high)
    {
        this.high = high;
    }

    public BigDecimal getHigh()
    {
        return high;
    }
    public void setLow(BigDecimal low)
    {
        this.low = low;
    }

    public BigDecimal getLow()
    {
        return low;
    }
    public void setClosed(BigDecimal closed)
    {
        this.closed = closed;
    }

    public BigDecimal getClosed()
    {
        return closed;
    }
    public void setPreClosed(BigDecimal preClosed)
    {
        this.preClosed = preClosed;
    }

    public BigDecimal getPreClosed()
    {
        return preClosed;
    }
    public void setChanged(BigDecimal changed)
    {
        this.changed = changed;
    }

    public BigDecimal getChanged()
    {
        return changed;
    }
    public void setPctChg(BigDecimal pctChg)
    {
        this.pctChg = pctChg;
    }

    public BigDecimal getPctChg()
    {
        return pctChg;
    }
    public void setVol(BigDecimal vol)
    {
        this.vol = vol;
    }

    public BigDecimal getVol()
    {
        return vol;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setTurnoverRate(BigDecimal turnoverRate)
    {
        this.turnoverRate = turnoverRate;
    }

    public BigDecimal getTurnoverRate()
    {
        return turnoverRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tsCode", getTsCode())
            .append("tradeDate", getTradeDate())
            .append("opened", getOpened())
            .append("high", getHigh())
            .append("low", getLow())
            .append("closed", getClosed())
            .append("preClosed", getPreClosed())
            .append("change", getChanged())
            .append("pctChg", getPctChg())
            .append("vol", getVol())
            .append("amount", getAmount())
            .append("turnoverRate", getTurnoverRate())
            .toString();
    }
}
